package cn.lanqiao.jdbc.pojo;

public class Account {
    private Integer id;
    private String accname;
    private Integer balance;

    public Account() {
    }

    public Account(String accname, Integer balance) {
        this.accname = accname;
        this.balance = balance;
    }

    public Account(Integer id, String accname, Integer balance) {
        this.id = id;
        this.accname = accname;
        this.balance = balance;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccname() {
        return accname;
    }

    public void setAccname(String accname) {
        this.accname = accname;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", accname='" + accname + '\'' +
                ", balance=" + balance +
                '}';
    }
}
